package com.icode.core.model.order;

import javax.persistence.Column;
import javax.persistence.Embeddable;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;

/**
 * Created with IntelliJ IDEA.
 * User: xianfei
 * Date: 15-1-20
 * Time: 上午10:07
 * To change this template use File | Settings | File Templates.
 */
@Embeddable
public class OrderInfo {

    @Column(name = "num")
    private Integer num;

    @Column(name = "total_price")
    private String totalPrice;

    @Column(name = "status")
    @Enumerated(EnumType.STRING)
    private AlipayStatus status;

    @Column(name = "order_time")
    private String time;

    @Column(name = "alipay_trade_no")
    private String alipayTradeNo;

    public OrderInfo() {
    }

    public OrderInfo(Integer num, String totalPrice, AlipayStatus status, String time) {
        this.num = num;
        this.totalPrice = totalPrice;
        this.status = status;
        this.time = time;
    }

    public Integer num() {
        return num;
    }

    public String totalPrice() {
        return totalPrice;
    }

    public String time() {
        return time;
    }

    public AlipayStatus status() {
        return status;
    }

    public String alipayTradeNo() {
        return alipayTradeNo;
    }
}
